package 
{
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    import flash.utils.*;
    
    import mx.events.*;
    import mx.preloaders.*;
    
    public class IDEPreloader extends DownloadProgressBar
    {
        public function IDEPreloader() 
        {   
            super();        
        }
        
        public override function set preloader(preloader:Sprite):void
        {
        	preloader.addEventListener(FlexEvent.INIT_COMPLETE, onFlexInitComplete);
        }
        
        private function onFlexInitComplete(event:FlexEvent):void
        {
            dispatchEvent( new Event(Event.COMPLETE));
        }
        
    }
}